<link rel="stylesheet" href="/Css/ui-lightness/jquery-ui-1.10.4.custom.css" />
<link rel="stylesheet" href="/Css/Admin/shop_order_list.css" />
<link rel="stylesheet" href="/Css/jquery.cluetip.css" />


<script type="text/javascript" src="/Js/jquery-ui-1.10.4.custom.js"></script>

<script type="text/javascript" src="/Js/ZeroClipboard.js"></script>
<script type="text/javascript" src="/Js/jquery.form.js"></script>
<script type="text/javascript" src="/Js/common.js"></script>
<script type="text/javascript" src="/Js/adm/task/shop_order_list.js"></script>
<script type="text/javascript" src="/Js/jquery.cluetip.js"></script>
<script type="text/javascript" src="/Js/WdatePicker.js"></script>


<div class="searchbox">
    <form id="form_task" action="/index.php/Admin/Task/shop_order_list" method="get">

        <label class="ui-form-label">查询日期:</label>

        <div class="ui-form-item-content">
            <input type="text" class="Wdate tc" id="begin" name="begin_time" onclick="javascript:WdatePicker()" readonly="readonly" value="{$begin_time}" />
            至
            <input type="text" class="Wdate tc" id="end" name="end_time" onclick="javascript:WdatePicker()" readonly="readonly" value="{$end_time}" />
        </div>

        <div class="ui-button ui-button-morange">
            <input type="submit" value="搜 索" class="ui-button-text" id="btnSearch">
        </div>

    </form>
</div>


<div class="explain-col" style="margin:5px 10px 0px 20px;">
    <table>
        <tbody><tr>
            <td class="w200 tc">已完成量:<span class="red">{$finish_count}</span></td>
            <td class="w200 tc">总订单量:<span class="red">{$order_count}</span></td>
            <td class="w200 tc">完成进度:<span class="red">{$percent}%</span></td>
        </tr>
        </tbody>
    </table>
</div>


<div class="pad-10">
<volist name="task_orders" id="t">
        <div class="table-ss">
            <table width="100%" cellspacing="0">
                <tbody>
                <tr>
                    <td style="font-size:12px;">任务单号 :<strong class="red font14">{$t.task.task_id}</strong> </td>
                    <td><strong class="red font14">{$t.task.plantform_name}: {$t.task.shop_name}</strong></td>
                    <td>开始时间：<strong class="red font14">{$t.task.begin_time}</strong></td>
                    <td>结束时间：<strong class="red font14">{$t.task.end_time}</strong></td>
                    <td>
                        <div class="ui-button ui-button-bblue">
                            <input type="button" id="btnResetMemberId-{$t.task.task_id}" value="重置账号" class="btnResetMemberId ui-button-text">
                        </div>
                    </td>
                    <td>
                        备注：<span class="beizhu">{$t.task_log.message}<span class="color-gray"> -- {$t.task_log.created}</span></span>

                    </td>
                    <td>
                        <div class="left" style="position:relative; width:26px">
                            <a class="jt" href="#" rel="/index.php/Admin/Task/task_log?id={$t.task.task_id}&remark=1">
                            更多 <div class="numbz">{$t.task_log.log_count}</div>
                            </a>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div id="task-{$t.task.task_id}" class="table_form03">
            <table class="table_task" width="100%" cellspacing="0">
                <thead>
                <tr>
                    <th>

                    </th>
                    <th>订单编号</th>
                    <th>产品链接</th>
                    <th>下单URL</th>
                    <th>关键词</th>
                    <th>排名</th>
                    <th>账号信息</th>
                    <th>收货信息</th>
                    <th>购买量</th>
                    <th>最终价</th>
                    <th>实际总金额</th>
                    <th>订单号</th>
                    <th>操作</th>
                    <th>下单IP</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                <!--循环显示订单-->
                <volist name="t.orders" id="o">

                    <tr order_id="{$o.order_id}">
                        <td class="tc w40">
                            <input type="checkbox" name="check_orders" id="orders_{$o.order_id}" value="{$o.order_id}" />
                        </td>
                        <td class="tc w60">
                            <a id="is_exception-{$o.order_id}" rel="/index.php/Admin/Task/order_remark?order_id={$o.order_id}" order_id="{$o.order_id}" name="is_exception" style="cursor:pointer;" class="<if condition='$o["remark"] neq ""'>bg-green</if> <eq name='o.is_exception' value='1'>color-red</eq>">{$o.order_id}</a>
                        </td>
                        <td class="tc w60">
                            <div class="short_text_none" title="{$o.goods_name}"><a href="{$o.goods_url}" target="_blank">{$o.item_id}</a></div>
                            <input type="hidden" id="hd_item_id-{$o.order_id}" value="{$o.item_id}" />
                            <input type="hidden" id="hd_goods_url-{$o.order_id}" value="{$o.goods_url}" />
                        </td>
                        <td class="tl w100">
                            <div id="order_url_clip_container-{$o.order_id}" style="position:relative">
                                <div prefix="order_url" id="order_url_clip_button-{$o.order_id}" class="my_clip_button short_text_100">{$o.order_url}</div>
                                <input type="hidden" id="hd_order_url-{$o.order_id}" value="{$o.order_url}" />
                            </div>
                        </td>
                        <td class="tc w100">

                            <div id="keywords_clip_container-{$o.order_id}" style="position:relative">
                                <div prefix="keywords" id="keywords_clip_button-{$o.order_id}" class="my_clip_button">{$o.keywords}</div>
                                <input type="hidden" id="hd_keywords-{$o.order_id}" value="{$o.keywords}" />
                            </div>

                        </td>
                        <td class="tc w40">{$o.search_rank_fmt}</td>
                        <td class="tc td_pop w60">

                            <div class="short_text_100">{$o.member_name}</div>

                            <div class="pos_absolute">

                                <div class="custom-menu div_pop hidden" style="width:120px">

                                    <ul>
                                        <li class="tl first" title="账号">
                                            <div id="member_name_clip_container-{$o.order_id}" style="position:relative">
                                                <div prefix="member_name" id="member_name_clip_button-{$o.order_id}" class="my_clip_button short_text_none">{$o.member_name}</div>
                                                <input type="hidden" id="hd_member_name-{$o.order_id}" value="{$o.member_name}" />
                                            </div>
                                        </li>
                                        <li class="tl " title="密码">
                                            <div id="member_pwd_clip_container-{$o.order_id}" style="position:relative">
                                                <div prefix="member_pwd" id="member_pwd_clip_button-{$o.order_id}" class="my_clip_button short_text_none">{$o.member_pwd}</div>
                                                <input type="hidden" id="hd_member_pwd-{$o.order_id}" value="{$o.member_pwd}" />
                                            </div>
                                        </li>
                                        <li class="tl last" title="支付密码">
                                            <div id="member_pay_pwd_clip_container-{$o.order_id}" style="position:relative">
                                                <div prefix="member_pay_pwd" id="member_pay_pwd_clip_button-{$o.order_id}" class="my_clip_button short_text_none">{$o.member_pay_pwd}</div>
                                                <input type="hidden" id="hd_member_pay_pwd-{$o.order_id}" value="{$o.member_pay_pwd}" />
                                            </div>
                                        </li>
                                    </ul>

                                </div>

                            </div>

                        </td>
                        <td class="tc td_pop w120">

                            <div id="address-{$o.order_id}" class="short_text_100">{$o.address}</div>

                            <div class="pos_absolute">

                                <div class="custom-menu div_pop hidden">
                                    <ul>
                                        <li class="tl first">
                                            <div id="address_clip_container-{$o.order_id}" style="position:relative">
                                                <div prefix="address" id="address_clip_button-{$o.order_id}" class="my_clip_button short_text" style="width:130px;">{$o.address}</div>
                                                <input type="hidden" id="hd_address-{$o.order_id}" value="{$o.address}" />
                                            </div>
                                        </li>
                                        <li class="tl ">
                                            <div id="mobile_phone_clip_container-{$o.order_id}" style="position:relative">
                                                <div prefix="mobile_phone" id="mobile_phone_clip_button-{$o.order_id}" class="my_clip_button short_text_none">{$o.mobile_phone}</div>
                                                <input type="hidden" id="hd_mobile_phone-{$o.order_id}" value="{$o.mobile_phone}" />
                                            </div>
                                        </li>
                                        <li class="tl last">
                                            <div id="consignee_clip_container-{$o.order_id}" style="position:relative">
                                                <div prefix="consignee" id="consignee_clip_button-{$o.order_id}" class="my_clip_button short_text_none">{$o.consignee}</div>
                                                <input type="hidden" id="hd_consignee-{$o.order_id}" value="{$o.consignee}" />
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </div>

                        </td>
                        <td class="tc w80">
                            {$o.goods_number}
                            <input type="hidden" id="hd_goods_number-{$o.order_id}" value="{$o.goods_number}" />
                        </td>
                        <td class="tc w80">
                            {$o.final_price}
                            <input type="hidden" id="hd_final_price-{$o.order_id}" value="{$o.final_price}" />
                        </td>
                        <td class="tr td_pop w120">

                            <div id="real_price-{$o.order_id}">{$o.real_price}</div>

                            <div class="pos_absolute">
                                <div class="custom-menu div_pop hidden" style="width:110px;height:90px;">
                                    <ul>
                                        <li class="first tr">
                                            用券款<input type="text" class="tr w40" id="bonus_money-{$o.order_id}" name="bonus_money" value="{$o.bonus_money}" />
                                        </li>
                                        <li class="tr">
                                            券后款<input type="text" class="tr w40" id="paid_amount-{$o.order_id}" name="paid_amount" value="{$o.paid_amount}" />
                                        </li>
                                        <li class="tr">
                                            运费<input type="text" class="tr w40" id="shipping_fee-{$o.order_id}" name="shipping_fee" value="{$o.shipping_fee}" />
                                        </li>
                                    </ul>
                                </div>
                            </div>

                        </td>
                        <td class="tc w100">
                            <input type="text" class="tl w80 input-txt" id="order_sn-{$o.order_id}" name="order_sn" value="{$o.order_sn}" />
                        </td>
                        <td class="tc w60">

                            <if condition="$o.is_finish eq 1">
                                <span class="color-green">已完成</span>
                            <else />
                                <div class="ui-button ui-button-sblue">
                                    <input type="button" id="btn_finish-{$o.order_id}" value="完成" class="btnFinish ui-button-text">
                                </div>
                            </if>
                        </td>
                        <td class="w80 tc" id="order_ip-{$o.order_id}">
                            {$o.order_ip}
                        </td>
                        <td></td>
                    </tr>

                </volist>
                <!--循环显示订单-->
                </tbody>
            </table>
        </div>
</volist>

</div>